import  {xsEntity} from '../commentity';
import { Column ,Entity} from 'typeorm';

/**
 * 描述
 */
@Entity()
export class AdvertisementEntity extends xsEntity {
    @Column({ comment: '跳转链接'  })
    link: string;

    @Column({comment :"轮播",type:"longtext", default:null})
    url:string;
    
    @Column({ comment: '顺序' ,default:null })
    position: number;
    @Column({ comment: '内容' ,default:null })
    content: string;
    @Column({ comment: '激活',default:null  })
    enabled: boolean;
    
    @Column({ comment: '删除',default:false })
    deleted: boolean;
}
